package com.sms.biz.impl;

import java.util.List;
import java.util.Map;

import com.sms.biz.IBatchSmsBiz;
import com.sms.dao.IBatchSmsDAO;
import com.sms.po.TTask;

public class BatchSmsBizImpl implements IBatchSmsBiz {
	
	private IBatchSmsDAO batchDao;
	
	public IBatchSmsDAO getBatchDao() {
		return batchDao;
	}

	public void setBatchDao(IBatchSmsDAO batchDao) {
		this.batchDao = batchDao;
	}

	@Override
	public boolean addBatchSms(TTask ca) {
		return this.getBatchDao().addBatchSms(ca);
	}

	@Override
	public List<TTask> findBatchSmsByPage(Map<Object, Object> map) {
		return this.getBatchDao().findBatchSmsByPage(map);
	}

	@Override
	public int findBatchSmsByPageCount(Map<Object, Object> map) {
		return this.getBatchDao().findBatchSmsByPageCount(map);
	}

	@Override
	public boolean removeBatchSms(TTask ca) {
		return this.getBatchDao().removeBatchSms(ca);
	}

	@Override
	public boolean updateBatchSms(TTask ca) {
		return this.getBatchDao().updateBatchSms(ca);
	}

}
